package com.travel.sight.feign;

import com.travel.common.oss.OssUploadTo;
import com.travel.common.to.AttractionInfoTo;
import com.travel.common.to.UpdateUserAttractionWeightTo;
import com.travel.common.to.UpdateUserTagWeightTo;
import com.travel.common.to.UserBehaviorWeightTo;
import com.travel.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("travel-recommend")
public interface RecommendFeignService {

    @RequestMapping("/recommend/{userId}")
    List<Integer> recommend(@PathVariable("userId")Integer userId);

    @RequestMapping("/recommend/userbehaviorweight/getUserBehaviorWeight")
    UserBehaviorWeightTo getUserBehaviorWeight();

    @RequestMapping("/recommend/userattractionweight/updateUserAttractionWeight/{userId}")
    R updateUserAttractionWeight(@RequestBody UpdateUserAttractionWeightTo to, @PathVariable("userId")Integer userId);

    @RequestMapping("/recommend/usertagweight/updateUserTagWeight/{userId}")
    R updateUserTagWeight(@RequestBody UpdateUserTagWeightTo to, @PathVariable("userId")Integer userId);

    @RequestMapping("/recommend/initialliketag/getInitialLikeTag/{userId}")
    String getInitialLikeTag(@PathVariable("userId") Integer userId);
}
